import {lazy} from "react";

export const lazyImport = (path: string) => {
    return lazy(() => import(path).then(module => ({
        default: module.default
    })));
}